package com.woniuxy.oa.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

/**
 * @description:
 * @author: guohao
 * @time: 2019/12/25 17:09
 */
public interface EmpPermDAO {
    /**
     * 增加一条员工权限中间表数据
     * @param permId
     * @param employeeId
     */
    @Insert("insert into oa_emp_perm values(#{permId},#{employeeId})")
    public void add(Integer permId, String employeeId);

    /**
     * 通过员工ID删除权限
     * @param employeeId
     */
    @Delete("delete from oa_emp_perm ep where ep.employeeId=#{employeeId}")
    public void delByEmpId(String employeeId);
}
